import axios from "@/http/http";

// 获取首页列表
export function Home() {
    return axios({
        url: "product/list",
        // params
        // 请求方式
        // method: "GET"
    })
}
export function categoryList() {
    return axios({
        url: "category"
    })
}

export function countyList() {
    return axios({
        url: "county"
    })
}

// toLogin

export function toLogin(data) {
    return axios({
        url:"login",
        method:"post",
        data
    })
}

export function update(data) {
    return axios({
        url:"cancellation",
        method:"post",
        data
    })
}

export function register(data) {
    return axios({
        url:"register",
        method:"post",
        data
    })
}

export function zhao(data){
    return axios({
        url:"product/userList",
        method:"POST",
        data
    })
}

export function toSou(data){
    return axios({
        url:"product/userList",
        method:"POST",
        data
    })
}